<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div class="span12 box-content">
	<div class="well"><h3>新建一个题目</h3>带<span style="color: red;" >*</span>为必填项目<br/>如需添加附件,任务书等,请添加之后到题目编辑页面添加</div>
	<div class="span1"></div><div id="project_add_alert_container" class="span4"></div><br/>
	<form class="form-horizontal span11" id="project_add_form" >
		<div class="control-group">
			<label class="control-label">题目名称</label>
			<div class="controls">
				<input name="project_name"size="16" type="text" >
				<span class="help-inline" style="color: red;">*</span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">所属学院</label>
			<div class="controls">
				<c:if test="${!user.superAdmin }">
					<c:set var="cglDisable" value="disabled"/>
				</c:if>
				<select  name="college"  ${cglDisable }>
					<c:forEach items="${colleges }" var="c" >
						<option value="${c.id }" ${c.id==prjClgId?"selected":"" }>${c.name }</option>
					</c:forEach>
				</select>
				<span class="help-inline" style="color: red;">*</span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">所属系</label>
			<div class="controls">
				<select  name="department">
				</select>
				<span class="help-inline" style="color: red;">*</span>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" >指导教师</label>
			<div class="controls">
			<select name="teacher" data-placeholder="请选择指导教师" data-rel="chosen" >
				<option></option>
			 </select>
			<span class="help-inline" style="color: red;">*</span>
			</div>
		 </div>
		<div class="control-group">
			<label class="control-label" >评阅人</label>
			<div class="controls">
			<select name="shengyue_teacher" data-placeholder="请选择评阅人" data-rel="chosen" >
				<option></option>
			 </select>
			<span class="help-inline" style="color: red;">*</span>
			</div>
		 </div>
		 <div class="control-group">
			<label class="control-label" >适用专业方向</label>
			<div class="controls">
				<select name="branche" data-placeholder="请选择专业方向" data-rel="chosen" multiple="multiple">
					<option></option>
				 </select>
				<span class="help-inline" style="color: red;">*</span>
			</div>
		 </div>
		 <div class="control-group">
			<label class="control-label" >题目描述</label>
			<div class="controls">
			<script id="project_desc" name="project_desc" type="text/plain"></script>
			<script type="text/javascript">
				UE.getEditor('project_desc',{
					minFrameHeight: 220,
			 	   initialFrameWidth : '60%',
			 	   initialFrameHeight: 200
				}).sync();
			</script>
			</div>
		 </div>
		<div class="form-actions">
			<button type="button" class="btn" onclick="history.go(-1)">取消并返回</button>
			<button type="button" class="btn btn-primary"id="project_add_form_save">保存并返回</button>
		</div>
	</form>
</div>
